.container {
  width: 100%;
  max-width: 100%;
}

.header {
  display: flex;
  gap: var(--spacing-2);
  align-items: center;
  width: 100%;
  padding: var(--spacing-2) 0;
  font-family: var(--main-font);
  font-size: var(--font-size-4);
  font-style: italic;
  color: var(--color-gray-300);
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: var(--border-radius-md);
  transition: color 0.15s ease;
}

.header:hover {
  color: var(--color-gray-100);
}

.chevron {
  display: flex;
  align-items: center;
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.durationWrapper {
  display: flex;
  gap: var(--spacing-1);
  align-items: center;
}

.workedForText {
  font-style: italic;
}

.content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
  width: 100%;
  max-width: 100%;
  padding: var(--spacing-2) var(--spacing-3);
  padding-left: calc(16px + var(--spacing-2));
  overflow: hidden;
  font-family: var(--main-font);
  font-size: var(--font-size-4);
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-gray-300);
  letter-spacing: 0.01em;
  word-break: break-word;
  word-wrap: break-word;
  overflow-wrap: break-word;
  transform-origin: top;
  will-change: opacity, transform;
}

.content[data-state='open'] {
  animation: reasoningFadeIn 200ms ease-out;
}

.content[data-state='closed'] {
  animation: reasoningFadeOut 200ms ease-in forwards;
}

@keyframes reasoningFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reasoningFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .content[data-state='open'],
  .content[data-state='closed'] {
    animation: none;
  }
}
